<%--
  Created by IntelliJ IDEA.
  User: WuLiangHang
  Date: 2021/12/17
  Time: 11:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
</head>
<body>

<form action="./login.do" method="get">
    用户名：<input type="text" name="username"/><br/>
    密码:<input type="password" name="password"/><br/>
    <button type="submit">登录</button>
</form>

<script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.14/assets/js/vendor/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script type="text/javascript">
    $(function () {
        //获取 username 的 cookie Value
        var cookie = $.cookie('username');
        $('input[name=username]').val(cookie);
    });
</script>
</body>
</html>
